package com.ruoyi.hospital.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hospital.mapper.HospitalsMapper;
import com.ruoyi.hospital.domain.Hospitals;
import com.ruoyi.hospital.service.IHospitalsService;

/**
 * 传染病知名医院Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-05
 */
@Service
public class HospitalsServiceImpl implements IHospitalsService 
{
    @Autowired
    private HospitalsMapper hospitalsMapper;

    /**
     * 查询传染病知名医院
     * 
     * @param hospitalId 传染病知名医院主键
     * @return 传染病知名医院
     */
    @Override
    public Hospitals selectHospitalsByHospitalId(Long hospitalId)
    {
        return hospitalsMapper.selectHospitalsByHospitalId(hospitalId);
    }

    /**
     * 查询传染病知名医院列表
     * 
     * @param hospitals 传染病知名医院
     * @return 传染病知名医院
     */
    @Override
    public List<Hospitals> selectHospitalsList(Hospitals hospitals)
    {
        return hospitalsMapper.selectHospitalsList(hospitals);
    }

    /**
     * 新增传染病知名医院
     * 
     * @param hospitals 传染病知名医院
     * @return 结果
     */
    @Override
    public int insertHospitals(Hospitals hospitals)
    {
        return hospitalsMapper.insertHospitals(hospitals);
    }

    /**
     * 修改传染病知名医院
     * 
     * @param hospitals 传染病知名医院
     * @return 结果
     */
    @Override
    public int updateHospitals(Hospitals hospitals)
    {
        return hospitalsMapper.updateHospitals(hospitals);
    }

    /**
     * 批量删除传染病知名医院
     * 
     * @param hospitalIds 需要删除的传染病知名医院主键
     * @return 结果
     */
    @Override
    public int deleteHospitalsByHospitalIds(Long[] hospitalIds)
    {
        return hospitalsMapper.deleteHospitalsByHospitalIds(hospitalIds);
    }

    /**
     * 删除传染病知名医院信息
     * 
     * @param hospitalId 传染病知名医院主键
     * @return 结果
     */
    @Override
    public int deleteHospitalsByHospitalId(Long hospitalId)
    {
        return hospitalsMapper.deleteHospitalsByHospitalId(hospitalId);
    }
}
